package com.canaan.business.mapper.inOutStock;

import java.util.List;
import com.canaan.business.domain.inOutStock.OutStockBillDetail;

/**
 * 出库单明细Mapper接口
 * 
 * @author canaan
 * @date 2025-03-29
 */
public interface OutStockBillDetailMapper {
    /**
     * 查询出库单明细
     * 
     * @param id 出库单明细主键
     * @return 出库单明细
     */
    public OutStockBillDetail selectOutStockBillDetailById(Long id);

    /**
     * 查询出库单明细列表
     * 
     * @param outStockBillDetail 出库单明细
     * @return 出库单明细集合
     */
    public List<OutStockBillDetail> selectOutStockBillDetailList(OutStockBillDetail outStockBillDetail);

    /**
     * 新增出库单明细
     * 
     * @param outStockBillDetail 出库单明细
     * @return 结果
     */
    public int insertOutStockBillDetail(OutStockBillDetail outStockBillDetail);

    /**
     * 批量新增出库单明细
     *
     * @param outStockBillDetailList 出库单明细列表
     * @return 结果
     */
    public int batchInsertOutStockBillDetail(List<OutStockBillDetail> outStockBillDetailList);

    /**
     * 修改出库单明细
     * 
     * @param outStockBillDetail 出库单明细
     * @return 结果
     */
    public int updateOutStockBillDetail(OutStockBillDetail outStockBillDetail);

    /**
     * 批量修改出库单明细
     *
     * @param outStockBillDetailList 出库单明细列表
     * @return 结果
     */
    public int batchUpdateOutStockBillDetail(List<OutStockBillDetail> outStockBillDetailList);

    /**
     * 删除出库单明细
     * 
     * @param id 出库单明细主键
     * @return 结果
     */
    public int deleteOutStockBillDetailById(Long id);

    /**
     * 批量删除出库单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOutStockBillDetailByIds(Long[] ids);

    /**
     * 查询出库单明细
     *
     * @param no 编号
     * @return 出库单明细
     */
    public OutStockBillDetail selectOutStockBillDetailByNo(String no);

    /**
     * 批量删除出库单明细
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    public int deleteOutStockBillDetailByNos(String[] nos);

    /**
     * 删除出库单明细信息
     *
     * @param no 编号
     * @return 结果
     */
    public int deleteOutStockBillDetailByNo(String no);

}
